package com.xxwy.bean;

import org.springframework.beans.factory.FactoryBean;

/**
 * @author wy
 * @date 2020/4/21 14:45
 */
public class UserFactoryBean implements FactoryBean<User> {
  @Override
  public User getObject() throws Exception {
    return User.createUser();
  }

  @Override
  public Class<?> getObjectType() {
    return User.class;
  }
}
